import Vue from 'vue'
import VueRouter from 'vue-router'

import Home from '@/views/Home'
import Search from '@/views/Search'
import Login from '@/views/Login'
import Registry from '@/views/Registry'

Vue.use(VueRouter)

export default new VueRouter({
  mode:'history',
  routes:[
    {
      path:'/home',
      component:Home,
      name:'Home' 
    },
    {
      path:'/search',
      component:Search,
      name:'Search',
    },
    {
      path:'/login',
      component:Login,
      name:'Login',
      meta:{
        isHiddenFooter:true
      }
    },
    {
      path:'/registry',
      component:Registry,
      name:'Registry',
      meta:{
        isHiddenFooter:true
      }
    },
    {
      path:'*',
      redirect:'/home'
    }
  ]
})
